import service from '@/utils/http.js'
// 发送推送消息
// POST /sass-test/public/index.php/api/Subscribe/send
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const send = (params) => {
    return service({
      url: 'api/Subscribe/send',
      method: 'post',
      data: params
    }) 
}

// 点亮和取消运动项目
export const get_Target = (params) => {
    return service({
      url: 'api/my/op',
      method: 'post',
      data: params
    }) 
}

// 获取二级场馆
export const getSeCondVenue = (params) => {
    return service({
      url: 'api/shop.Index/getSeCondVenue',
      method: 'post',
      data: params
    }) 
}
// 商铺分类
export const getVenueCate = (params) => {
    return service({
      url: 'api/shop.Index/getVenueCate',
      method: 'post',
      data: params
    }) 
}
// 获取商铺列表
export const getShop = (params) => {
    return service({
      url: 'api/shop.index/getShop',
      method: 'post',
      data: params
    }) 
}
// 获取商铺详情
export const getShopInfo = (params) => {
    return service({
      url: 'api/shop.index/getShopInfo',
      method: 'post',
      data: params
    }) 
}
// 获取店铺商品
export const getShopFoods = (params) => {
    return service({
      url: 'api/shop.Index/getShopFoods',
      method: 'post',
      data: params
    }) 
}

// 运动场地分类
export const getCourtCate = (params) => {
    return service({
      url: 'api/court/getCourtCate',
      method: 'post',
      data: params
    }) 
}
// 运动场地列表
export const getSportsCourt = (params) => {
    return service({
      url: 'api/court/getSportsCourt',
      method: 'post',
      data: params
    }) 
}
// 获取场地详情
export const getSportsCourtInfo = (params) => {
    return service({
      url: 'api/court/getSportsCourtInfo',
      method: 'post',
      data: params
    }) 
}
// 个性名片分类列表
export const visit_cardindex = (params) => {
    return service({
      url: 'api/member.visit_card/index',
      method: 'post',
      data: params
    }) 
}
// 用户设置默认名片分类
export const setDefault = (params) => {
    return service({
      url: 'api/member.visit_card/setDefault',
      method: 'post',
      data: params
    }) 
}
// 获取用户的个性名片设置
export const getUseSet = (params) => {
    return service({
      url: 'api/member.visit_card/getUseSet',
      method: 'post',
      data: params
    }) 
}
// 运动-通行设施列表
export const traffic = (params) => {
    return service({
      url: 'api/sport.facility/traffic',
      method: 'post',
      data: params
    }) 
}

// 运动-设施下的通行站点列表
export const trafficStation = (params) => {
    return service({
      url: 'api/sport.facility/trafficStation',
      method: 'post',
      data: params
    }) 
}
// 运动-公共设施列表
export const communal = (params) => {
    return service({
      url: 'api/sport.facility/communal',
      method: 'post',
      data: params
    }) 
}

// 我的锻炼记录
export const myExerciseHour = (params) => {
    return service({
      url: 'api/my/myExerciseHour',
      method: 'post',
      data: params
    }) 
}

// 我的锻炼记录
export const myExerciseProjectHour = (params) => {
    return service({
      url: 'api/my/myExerciseProjectHour',
      method: 'post',
      data: params
    }) 
}

// 锻炼排行
export const exerciseSort = (params) => {
    return service({
      url: 'api/my/exerciseSort',
      method: 'post',
      data: params
    }) 
}
// 锻炼排行
export const parkcommunal = (params) => {
    return service({
      url: 'api/park.index/communal',
      method: 'post',
      data: params
    }) 
}



// 运动场地分类
export const getSpCourtCate = (params) => {
    return service({
      url: 'api/court/getSpCourtCate',
      method: 'post',
      data: params
    }) 
}
// 运动场地列表
export const getSpCourt = (params) => {
    return service({
      url: 'api/court/getSpCourt',
      method: 'post',
      data: params
    }) 
}
// 运动场地列表
export const getSpCourtInfo = (params) => {
    return service({
      url: 'api/court/getSpCourtInfo',
      method: 'post',
      data: params
    }) 
}

export const permitExerciseSort = (params) => {
    return service({
      url: 'api/my/permitExerciseSort',
      method: 'post',
      data: params
    }) 
}